###
 # @Author: Clark
 # @Email: haixuanwoTxh@gmail.com
 # @Date: 2021-12-01 12:03:59
 # @LastEditors: Clark
 # @LastEditTime: 2021-12-01 12:07:58
 # @Description: file content
###

# printf  format-string  [arguments...]
# 参数说明：
# format-string: 为格式控制字符串
# arguments: 为参数列表。

printf "tanxiaohai\n" # 不像echo自动加的换行符

printf "%-10s %-8s %-4s\n" 姓名 性别 体重kg     # %s %c %d %f 都是格式替代符
printf "%-10s %-8s %-4.2f\n" 郭靖 男 66.1234
printf "%-10s %-8s %-4.2f\n" 杨过 男 48.6543
printf "%-10s %-8s %-4.2f\n" 郭芙 女 47.9876

printf "%d %s\n" 1 "abc"
printf "%d %s\n" 1 abc

